package org.vincen.helloworld.rubbish;

/**
 * 位操作相关代码
 * @author vincen
 */
public class R20120316 {

	public static int displacement(int a, int b){
		int[] temp = {a, b};
		return temp[(a-b)>>>31];
	}
	
	public static void main(String[] args) {
		System.out.println(displacement(2, 3));
		int i = 68;
		i = i >> 1;
//		i = i >> 31;
		System.out.println(i);
	}
}
